From 19aacf6c061af7e5c7672a818a773fecda224ad9 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 22 Jan 2015 12:49:04 +0100 Subject: [PATCH] x86: don't open-code cpuid_count() in pv_cpuid() Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- xen/arch/x86/traps.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index a8d7bb673b..322ebf44b3 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -861,10 +861,7 @@ void pv_cpuid(struct cpu_user_regs *regs) goto out; } - asm ( - "cpuid" - : "=a" (a), "=b" (b), "=c" (c), "=d" (d) - : "0" (a), "1" (b), "2" (c), "3" (d) ); + cpuid_count(a, c, &a, &b, &c, &d); if ( (regs->eax & 0x7fffffff) == 0x00000001 ) { -- 2.30.2